package com.seetools.generator.config;

import com.baomidou.mybatisplus.generator.config.PackageConfig;

/**
 * @Author: seeTools
 * @Date: 2023/5/18  16:59
 * @Version 1.0
 */
public class PackageInitConfig {

    /**
     * 父包名
     */
    private static final String BASE_PARENT = "com.seeTools.pc";

    /**
     * 模块包名
     */
    private static final String ENTITY = "model";
    private static final String SERVICE = "service";
    private static final String SERVICE_IMPL = "service.impl";
    private static final String MAPPER = "mapper";
    private static final String MAPPER_XML = "mapper.xml";
    private static final String CONTROLLER = "controller";

    public static PackageConfig packageInit() {
        PackageConfig config = new PackageConfig();
        config.setParent(BASE_PARENT);
        config.setEntity(ENTITY);
        config.setService(SERVICE);
        config.setServiceImpl(SERVICE_IMPL);
        config.setMapper(MAPPER);
        config.setXml(MAPPER_XML);
        config.setController(CONTROLLER);
        return config;
    }

}
